What is a Strong Name in Microsoft.Net?
2667
06-Dec-2010
Rajesh Goswami
06-Dec-2010Steps to create strong named assembly:
- To create a strong named assembly you need to have a key pair (public key and a private key) file.
Use sn -k KeyFile.snk- Open the dot net project to be complied as a strong named assembly. Open AssembyInfo.cs/ AssembyInfo.vb file. Add the following lines to AssemblyInfo file.
[Assembly: AssemblyVersion("1.0.*")][assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("..\\..\\KeyFile.snk")]